<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <title>{$basic.title}</title>
    <link rel='Shortcut Icon' type='image/x-icon' href='__WIN__/img/windows.ico'>
    <script type="text/javascript" src="__WIN__/js/jquery-2.2.4.min.js"></script>
    <link href="__WIN__/css/animate.css" rel="stylesheet">
    <script type="text/javascript" src="__WIN__/component/layer-v3.0.3/layer/layer.js"></script>
    <link rel="stylesheet" href="__WIN__/component/font-awesome-4.7.0/css/font-awesome.min.css">
    <link href="__WIN__/css/default.css" rel="stylesheet">
    <script type="text/javascript" src="__WIN__/js/win10.js"></script>
    <style>
        * {
            font-family: "Microsoft YaHei", 微软雅黑, "MicrosoftJhengHei", 华文细黑, STHeiti, MingLiu
        }

        /*磁贴自定义样式*/
         .win10-block-content-text {
             line-height: 44px;
             text-align: center;
             font-size: 16px;
         .tplImage a{
             margin: 10px;
         }
         .tplImage img{
         	width: 100px;
         	height: 100px;
         }
		 }
    </style>
    <script>
        Win10.onReady(function () {

            //设置壁纸
            Win10.setBgUrl({
                main: '__WIN__/img/wallpapers/main.jpg',
                mobile: '__WIN__/img/wallpapers/mobile.jpg',
            });

            Win10.setAnimated([
                'animated flip',
                'animated bounceIn',
            ], 0.01);
        });
		function setBg(){
			layer.open({
			  type: 1,
			  title: "设置背景", //不显示标题
			  content: $('.tplImage'), 
			});
		}
	$(document).on('click','.tplImage img',function(){
			//$('#win10').css('background-url',$(this).attr('src'));
			Win10.setBgUrl({
			    main: $(this).attr('src'),
			    mobile: '__WIN__/img/wallpapers/mobile.jpg',
			});
	})
    </script>
</head>
<body>
<div id="win10">
    <div class="desktop">
        <div id="win10-shortcuts" class="shortcuts-hidden">
			{volist name="menu" id="vo"}
				{if $vo.id == 1}
				{volist name="vo.child" id="voo"}
				<div class="shortcut" ondblclick="Win10.openUrl('{$voo.url}','{$voo.node_name}')">
					<i class="icon {$voo.icon}"></i>
					<div class="title">{$voo.node_name}</div>
				</div>
				{/volist}
				{/if}
			{/volist}
				<div class="shortcut" ondblclick="location.href='index'">
					<i class="icon fa fa-dashboard"></i>
					<div class="title">切换主题</div>
				</div>
				<div class="shortcut" ondblclick="setBg()">
					<i class="icon fa fa-paint-brush"></i>
					<div class="title">更换壁纸</div>
				</div>
        </div>
        <div id="win10-desktop-scene"></div>
    </div>
    <div id="win10-menu" class="hidden">
        <div class="list win10-menu-hidden animated animated-slideOutLeft">
            <div class="item"
                 onclick="Win10.exit('{:url('index/logout')}')">
                <i class="black icon fa fa-power-off fa-fw"></i><span class="title">关闭</span>
            </div>
			{volist name="menu" id="vo"}
				{if $vo.id != 1}
				<div class="item">
					<i class="black icon {$vo.icon}"></i><span class="title">{$vo.node_name}</span>
				</div>
				{volist name="vo.child" id="voo"}
				<div class="sub-item" onclick="Win10.openUrl('{$voo.url}','{$voo.node_name}')">
					<i class="black icon {$voo.icon}"></i><span class="title">{$voo.node_name}</span>
				</div>
				{/volist}
				{/if}
			{/volist}
        </div>
        <div class="blocks">
            <div class="menu_group">
                <div class="title">Welcome</div>
                <div class="block" loc="1,1" size="6,4">
                    <div class="content">
                        <div style="font-size:100px;line-height: 132px;margin: 0 auto ;display: block"
                             class="fa fa-fw fa-windows win10-block-content-text"></div>
                        <div class="win10-block-content-text" style="font-size: 22px">欢迎使用 Win10-UI</div>
                    </div>
                </div>
            </div>
        </div>
        <div id="win10-menu-switcher"></div>
    </div>
    <div id="win10_command_center" class="hidden_right">
        <div class="title">
            <h4 style="float: left">消息中心 </h4>
            <span id="win10_btn_command_center_clean_all">全部清除</span>
        </div>
        <div class="msgs"></div>
    </div>
    <div id="win10_task_bar">
        <div id="win10_btn_group_left" class="btn_group">
            <div id="win10_btn_win" class="btn"><span class="fa fa-windows"></span></div>
            <div class="btn" id="win10-btn-browser"><span class="fa fa-internet-explorer"></span></div>
        </div>
        <div id="win10_btn_group_middle" class="btn_group"></div>
        <div id="win10_btn_group_right" class="btn_group">
            <div class="btn" id="win10_btn_time"></div>
            <div class="btn" id="win10_btn_command"><span id="win10-msg-nof" class="fa fa-comment-o"></span></div>
            <div class="btn" id="win10_btn_show_desktop"></div>
        </div>
    </div>
</div>
<div class="tplImage" style="margin: 10px;">
	{volist name="imageList" id="vo"}
		<img src="__UI__/../win_10/img/wallpapers/{$vo}" style="width: 100px;height: 100px;">
	{/volist}
</div>
</body>
</html>